.class public Ldata/GoodstypeAdapter;
.super Landroid/widget/BaseAdapter;
.source "GoodstypeAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ldata/GoodstypeAdapter$Holder;
    }
.end annotation


# instance fields
.field private c:Landroid/content/Context;

.field private listbean:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ShoptypeBean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 0
    .param p1, "c"    # Landroid/content/Context;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Lbean/ShoptypeBean;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 27
    .local p2, "listbean":Ljava/util/List;, "Ljava/util/List<Lbean/ShoptypeBean;>;"
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 28
    iput-object p1, p0, Ldata/GoodstypeAdapter;->c:Landroid/content/Context;

    .line 29
    iput-object p2, p0, Ldata/GoodstypeAdapter;->listbean:Ljava/util/List;

    .line 30
    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 42
    iget-object v0, p0, Ldata/GoodstypeAdapter;->listbean:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "arg0"    # I

    .prologue
    .line 47
    const/4 v0, 0x0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "arg0"    # I

    .prologue
    .line 52
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getList()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lbean/ShoptypeBean;",
            ">;"
        }
    .end annotation

    .prologue
    .line 32
    iget-object v0, p0, Ldata/GoodstypeAdapter;->listbean:Ljava/util/List;

    return-object v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .param p1, "arg0"    # I
    .param p2, "view"    # Landroid/view/View;
    .param p3, "arg2"    # Landroid/view/ViewGroup;

    .prologue
    .line 61
    if-nez p2, :cond_0

    .line 62
    new-instance v1, Ldata/GoodstypeAdapter$Holder;

    invoke-direct {v1, p0}, Ldata/GoodstypeAdapter$Holder;-><init>(Ldata/GoodstypeAdapter;)V

    .line 64
    .local v1, "holder":Ldata/GoodstypeAdapter$Holder;
    iget-object v2, p0, Ldata/GoodstypeAdapter;->c:Landroid/content/Context;

    invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    const v3, 0x7f0300a4

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 66
    const v2, 0x7f0c02fd

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ldata/GoodstypeAdapter$Holder;->tv1:Landroid/widget/TextView;

    .line 68
    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 73
    :goto_0
    iget-object v2, p0, Ldata/GoodstypeAdapter;->listbean:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/ShoptypeBean;

    .line 77
    .local v0, "bean":Lbean/ShoptypeBean;
    return-object p2

    .line 70
    .end local v0    # "bean":Lbean/ShoptypeBean;
    .end local v1    # "holder":Ldata/GoodstypeAdapter$Holder;
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ldata/GoodstypeAdapter$Holder;

    .restart local v1    # "holder":Ldata/GoodstypeAdapter$Holder;
    goto :goto_0
.end method

.method public setList(Ljava/util/List;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lbean/ShoptypeBean;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 36
    .local p1, "listbean":Ljava/util/List;, "Ljava/util/List<Lbean/ShoptypeBean;>;"
    iput-object p1, p0, Ldata/GoodstypeAdapter;->listbean:Ljava/util/List;

    .line 37
    return-void
.end method
